package me.muci.singletonPattern;

/**
 * ClassName: SingletonClass <br/>
 * Description: 单例模式，饿汉式加载，SingletonClass类被加载时，instance就被初始化<br/>
 * date: 2021/8/5 9:21<br/>
 *
 * @author muci<br />
 * @description
 * @since JDK 1.8
 */
public class SingletonClass {

    private static SingletonClass instance = new SingletonClass();

    private SingletonClass(){

    }

    public static SingletonClass getInstance(){
        return instance;
    }
}
